package cn.iocoder.yudao.module.def.controller.admin.mysql.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - MySQL数据备份分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class BackupsPageReqVO extends PageParam {

    @Schema(description = "数据库IP")
    private String mysqlIp;

    @Schema(description = "数据库端口")
    private String mysqlPort;

    @Schema(description = "备份命令")
    private String mysqlCmd;

    @Schema(description = "恢复命令")
    private String mysqlBackCmd;

    @Schema(description = "数据库名称", example = "王五")
    private String databaseName;

    @Schema(description = "备份数据地址")
    private String backupsPath;

    @Schema(description = "备份文件名称", example = "赵六")
    private String backupsName;

    @Schema(description = "操作次数")
    private Integer operation;

    @Schema(description = "数据状态（1正常，-1删除）", example = "2")
    private Integer status;

    @Schema(description = "恢复时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] recoveryTime;

    @Schema(description = "备份时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}